package service.impl;

import java.util.List;

import model.Teacher;
import service.TeacherService;
import dao.TeacherDao;

public class TeacherServiceImpl implements TeacherService{

	private TeacherDao teacherDao;
	
	public void delTeacher(Teacher teacher) {
		teacherDao.delTeacher(teacher);
	}

	public List<Teacher> listTeachers() {
		return teacherDao.listTeachers();
	}

	public void saveOrUpdate(Teacher teacher) {
		teacherDao.saveOrUpdate(teacher);
	}

	public TeacherDao getTeacherDao() {
		return teacherDao;
	}

	public void setTeacherDao(TeacherDao teacherDao) {
		this.teacherDao = teacherDao;
	}
	
}
